import requests from "./ajax";

// const baseURL = "https://yfjx.online:443";
//获取验证码
export function reqGetCode() {
  return requests({
    url: `/captcha`,
    // headers: { "Content-Type": "application/x-www-form-urlencoded" },
    method: "get",
  });
}
//登录
export const reqUserLogin = (data) =>
  requests({
    url: `/login`,
    data,
    method: "post",
  });
//退出登录
export const reqLogout = () =>
  requests({
    url: `/logoff`,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    method: "get",
  });
